import Vue from 'vue'
import VueRouter from 'vue-router'

import Main from '../main.vue'
import loginMain from '../loginMain.vue'
import shopMain from '../shopMain.vue'

Vue.use(VueRouter)

// let path = "wechatapplets";
const routes = [
  {
    path: '/',
    name: 'Index',
    component: Main,
    children: [
      {
        path: '/',
        name: 'home',
        component: () => import('@/views/store/storesurvey')
        // component: () => import('@/views/index/Home')
      },
      // {
      //     path: "login",
      //     name: "login",
      //     component: () =>
      //         import("@/views/index/login"),
      // },
      {
        path: '/activationCode',
        name: 'activationCode',
        component: () => import('@/views/index/activationCode')
      },
      {
        path: '/storeset',
        name: 'storeset',
        component: () => import('@/views/index/storeset')
      },
      {
        path: '/activity1',
        name: 'activity1',
        component: () => import('@/views/index/activity1')
      },
      {
        path: '/mynumber',
        name: 'mynumber',
        component: () => import('@/views/index/mynumber')
      }
    ]
  },
  {
    path: '/',
    name: 'login',
    component: loginMain,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import('@/views/index/login')
      },
      {
        path: 'fastScreen',
        name: 'fastScreen',
        component: () => import('@/views/index/fastScreen')
      },
      {
        path: 'queuingcode',
        name: 'queuingcode',
        component: () => import('@/views/index/queuingcode')
      },
    ]
  },
  {
    path: '/order',
    name: 'order',
    component: Main,
    children: [
      {
        path: '/orderprocessing',
        name: 'orderprocessing',
        component: () => import('@/views/order/orderprocessing')
      },
      {
        path: '/orderinquiry',
        name: 'orderinquiry',
        component: () => import('@/views/order/orderinquiry')
      },
      {
        path: '/selforder',
        name: 'selforder',
        component: () => import('@/views/order/selforder')
      },
      {
        path: '/elemorder',
        name: 'elemorder',
        component: () => import('@/views/order/elemorder')
      },
      {
        path: '/meituanorder',
        name: 'meituanorder',
        component: () => import('@/views/order/meituanorder')
      },
      {
        path: '/templatemsg',
        name: 'templatemsg',
        component: () => import('@/views/order/templatemsg')
      },
      {
        path: '/smsreminder',
        name: 'smsreminder',
        component: () => import('@/views/order/smsreminder')
      },
      {
        path: '/printerset',
        name: 'printerset',
        component: () => import('@/views/order/printerset')
      },
      {
        path: '/voicereminder',
        name: 'voicereminder',
        component: () => import('@/views/order/voicereminder')
      },
      {
        path: '/outset',
        name: 'outset',
        component: () => import('@/views/order/outset')
      },
      {
        path: '/appointmentset',
        name: 'appointmentset',
        component: () => import('@/views/order/appointmentset')
      },
      {
        path: '/evaluate',
        name: 'evaluate',
        component: () => import('@/views/order/evaluate')
      },
      {
        path: '/evaluatelabel',
        name: 'evaluatelabel',
        component: () => import('@/views/order/evaluatelabel')
      },
      // {
      //   path: "/selfaddress",
      //   name: "selfaddress",
      //   component: () =>
      //       import("@/views/order/selfaddress")
      // },
      {
        path: '/citydistribution',
        name: 'citydistribution',
        component: () => import('@/views/order/citydistribution')
      },
      {
        path: '/regiondistribution',
        name: 'regiondistribution',
        component: () => import('@/views/order/regiondistribution')
      }
    ]
  },
  {
    path: '/good',
    name: 'good',
    component: Main,
    children: [
      {
        path: '/',
        name: 'good',
        component: () => import('@/views/good/goodlist')
      },
      {
        path: '/addgood',
        name: 'addgood',
        component: () => import('@/views/good/addgood')
      },
      {
        path: '/addgood1',
        name: 'addgood1',
        component: () => import('@/views/good/addgood1')
      },
      {
        path: '/goodclassify',
        name: 'goodclassify',
        component: () => import('@/views/good/goodclassify')
      },
      {
        path: '/goodspec',
        name: 'goodspec',
        component: () => import('@/views/good/goodspec')
      },
      {
        path: '/goodattribute',
        name: 'goodattribute',
        component: () => import('@/views/good/goodattribute')
      },
      {
        path: '/goodfeeding',
        name: 'goodfeeding',
        component: () => import('@/views/good/goodfeeding')
      },
      {
        path: '/goodlabel',
        name: 'goodlabel',
        component: () => import('@/views/good/goodlabel')
      },
      {
        path: '/printlabel',
        name: 'printlabel',
        component: () => import('@/views/good/printlabel')
      },
      {
        path: '/goodunit',
        name: 'goodunit',
        component: () => import('@/views/good/goodunit')
      },
      {
        path: '/goodimport',
        name: 'goodimport',
        component: () => import('@/views/good/goodimport')
      },
      {
        path: '/goodtongji',
        name: 'goodtongji',
        component: () => import('@/views/good/goodtongji')
      }
    ]
  },
  {
    path: '/user',
    name: 'user',
    component: Main,
    children: [
      {
        path: '/usersurvey',
        name: 'usersurvey',
        component: () => import('@/views/user/usersurvey')
      },
      {
        path: '/userimport',
        name: 'userimport',
        component: () => import('@/views/user/userimport')
      },
      {
        path: '/userlabel',
        name: 'userlabel',
        component: () => import('@/views/user/userlabel')
      },
      {
        path: '/userquery',
        name: 'userquery',
        component: () => import('@/views/user/userquery')
      },
      {
        path: '/userdetails',
        name: 'userdetails',
        component: () => import('@/views/user/userdetails')
      },
      {
        path: '/userset',
        name: 'userset',
        component: () => import('@/views/user/userset')
      },
      {
        path: '/valuequery',
        name: 'valuequery',
        component: () => import('@/views/user/valuequery')
      },
      {
        path: '/valuerecord',
        name: 'valuerecord',
        component: () => import('@/views/user/valuerecord')
      },
      {
        path: '/integralquery',
        name: 'integralquery',
        component: () => import('@/views/user/integralquery')
      },
      {
        path: '/integralset',
        name: 'integralset',
        component: () => import('@/views/user/integralset')
      },
      {
        path: '/valuerule',
        name: 'valuerule',
        component: () => import('@/views/user/valuerule')
      },
      {
        path: '/valueruleadd',
        name: 'valueruleadd',
        component: () => import('@/views/user/valueruleadd')
      },
      {
        path: '/valueset',
        name: 'valueset',
        component: () => import('@/views/user/valueset')
      },
      {
        path: '/vipmange',
        name: 'vipmange',
        component: () => import('@/views/user/vipmange')
      },
      {
        path: '/vipmangeadd',
        name: 'vipmangeadd',
        component: () => import('@/views/user/vipmangeadd')
      },
      {
        path: '/vipset',
        name: 'vipset',
        component: () => import('@/views/user/vipset')
      },
      {
        path: '/vipsurvey',
        name: 'vipsurvey',
        component: () => import('@/views/user/vipsurvey')
      },
      {
        path: '/vipquery',
        name: 'vipquery',
        component: () => import('@/views/user/vipquery')
      }
    ]
  },
  {
    path: '/finance',
    name: 'finance',
    component: Main,
    children: [
      {
        path: '/assetssurvey',
        name: 'assetssurvey',
        component: () => import('@/views/finance/assetssurvey')
      },
      {
        path: '/accountmange',
        name: 'accountmange',
        component: () => import('@/views/finance/accountmange')
      },
      {
        path: '/accountdl',
        name: 'accountdl',
        component: () => import('@/views/finance/accountdl')
      },
      {
        path: '/transactiondl',
        name: 'transactiondl',
        component: () => import('@/views/finance/transactiondl')
      },
      {
        path: '/financerecord',
        name: 'financerecord',
        component: () => import('@/views/finance/financerecord')
      },
      {
        path: '/financerecordDetail',
        name: 'financerecordDetail',
        component: () => import('@/views/finance/financerecordDetail')
      },
      {
        path: '/infinancerecordDetail',
        name: 'infinancerecordDetail',
        component: () => import('@/views/finance/infinancerecordDetail')
      },
      {
        path: '/cashfinancerecordDetail',
        name: 'cashfinancerecordDetail',
        component: () => import('@/views/finance/cashfinancerecordDetail')
      },
      {
        path: '/integraldl',
        name: 'integraldl',
        component: () => import('@/views/finance/integraldl')
      },
      {
        path: '/balancedl',
        name: 'balancedl',
        component: () => import('@/views/finance/balancedl')
      },
      {
        path: '/balance',
        name: 'balance',
        component: () => import('@/views/finance/balance')
      },
      {
        path: '/integralflow',
        name: 'integralflow',
        component: () => import('@/views/finance/integralflow')
      }
    ]
  },
  {
    path: '/instore',
    name: 'instore',
    component: Main,
    children: [
      {
        path: '/instoresurvey',
        name: 'instoresurvey',
        component: () => import('@/views/instore/instoresurvey')
      },
      {
        path: '/tablemanager',
        name: 'tablemanager',
        component: () => import('@/views/instore/tablemanager')
      },
      {
        path: '/tablecode',
        name: 'tablecode',
        component: () => import('@/views/instore/tablecode')
      },
      {
        path: '/table',
        name: 'table',
        component: () => import('@/views/instore/table')
      },
      {
        path: '/instoreset',
        name: 'instoreset',
        component: () => import('@/views/instore/instoreset')
      },
      {
        path: '/ingoodlist',
        name: 'ingoodlist',
        component: () => import('@/views/instore/ingoodlist')
      },
      {
        path: '/ingoodclassify',
        name: 'ingoodclassify',
        component: () => import('@/views/instore/ingoodclassify')
      },
      {
        path: '/infastorder',
        name: 'infastorder',
        component: () => import('@/views/instore/infastorder')
      },
      {
        path: '/infastorderquery',
        name: 'infastorderquery',
        component: () => import('@/views/instore/infastorderquery')
      },
      {
        path: '/cashierorder',
        name: 'cashierorder',
        component: () => import('@/views/instore/cashierorder')
      },
      {
        path: '/appointmentstore',
        name: 'appointmentstore',
        component: () => import('@/views/instore/appointmentstore')
      },
      {
        path: '/instoreorder',
        name: 'instoreorder',
        component: () => import('@/views/instore/instoreorder')
      },
      {
        path: '/instoreorderquery',
        name: 'instoreorderquery',
        component: () => import('@/views/instore/instoreorderquery')
      },
      {
        path: '/instoredwcorderquery',
        name: 'instoredwcorderquery',
        component: () => import('@/views/instore/instoredwcorderquery')
      },
      {
        path: '/instoreorderdl',
        name: 'instoreorderdl',
        component: () => import('@/views/instore/instoreorderdl')
      },
      {
        path: '/inprinterset',
        name: 'inprinterset',
        component: () => import('@/views/instore/inprinterset')
      }
    ]
  },
  {
    path: '/store',
    name: 'store',
    component: Main,
    children: [
      {
        path: '/storesurvey',
        name: 'storesurvey',
        component: () => import('@/views/store/storesurvey')
      },
      {
        path: '/storeinformation',
        name: 'storeinformation',
        component: () => import('@/views/store/storeinformation')
      },
      {
        path: '/materialmange',
        name: 'materialmange',
        component: () => import('@/views/store/materialmange')
      },
      {
        path: '/renovationindex',
        name: 'renovationindex',
        component: () => import('@/views/store/renovationindex')
      },
      {
        path: '/renovationlist',
        name: 'renovationlist',
        component: () => import('@/views/store/renovationlist')
      },
      {
        path: '/templatemall',
        name: 'templatemall',
        component: () => import('@/views/store/templatemall')
      },
      {
        path: '/storestyle',
        name: 'storestyle',
        component: () => import('@/views/store/storestyle')
      },
      {
        path: '/storetemment',
        name: 'storetemment',
        component: () => import('@/views/store/storetemment')
      }
    ]
  },
  {
    path: '/shop',
    name: 'shop',
    component: Main,
    children: [
      {
        path: '/shopsurvey',
        name: 'shopsurvey',
        component: () => import('@/views/shop/shopsurvey')
      },
      {
        path: '/shopadd',
        name: 'shopadd',
        component: () => import('@/views/shop/shopadd')
      },
      {
        path: '/storeregiondistribution',
        name: 'storeregiondistribution',
        component: () => import('@/views/shop/storeregiondistribution')
      },
      {
        path: '/storecitydistribution',
        name: 'storecitydistribution',
        component: () => import('@/views/shop/storecitydistribution')
      },
      {
        path: '/shopclassify',
        name: 'shopclassify',
        component: () => import('@/views/shop/shopclassify')
      },
      {
        path: '/shopregion',
        name: 'shopregion',
        component: () => import('@/views/shop/shopregion')
      },
      {
        path: '/servicerate',
        name: 'servicerate',
        component: () => import('@/views/shop/servicerate')
      },
      {
        path: '/shopinformation',
        name: 'shopinformation',
        component: () => import('@/views/shop/shopinformation')
      },
      {
        path: '/shoplabel',
        name: 'shoplabel',
        component: () => import('@/views/shop/shoplabel')
      },
      {
        path: '/shoplist',
        name: 'shoplist',
        component: () => import('@/views/shop/shoplist')
      },
      {
        path: '/shopset',
        name: 'shopset',
        component: () => import('@/views/shop/shopset')
      },
      {
        path: '/withdrawalliest',
        name: 'withdrawalliest',
        component: () => import('@/views/shop/withdrawalliest')
      },
      {
        path: '/withdrawallset',
        name: 'withdrawallset',
        component: () => import('@/views/shop/withdrawallset')
      }
    ]
  },
  {
    path: '/data',
    name: 'data',
    component: Main,
    children: [
      {
        path: '/datasurvey',
        name: 'datasurvey',
        component: () => import('@/views/data/datasurvey')
      },
      {
        path: '/flowanalysis',
        name: 'flowanalysis',
        component: () => import('@/views/data/flowanalysis')
      },
      {
        path: '/outgood',
        name: 'outgood',
        component: () => import('@/views/data/outgood')
      },
      {
        path: '/integralanalysis',
        name: 'integralanalysis',
        component: () => import('@/views/data/integralanalysis')
      },
      {
        path: '/realtime',
        name: 'realtime',
        component: () => import('@/views/data/realtime')
      },
      {
        path: '/useranalysis',
        name: 'useranalysis',
        component: () => import('@/views/data/useranalysis')
      },
      {
        path: '/valueanalysis',
        name: 'valueanalysis',
        component: () => import('@/views/data/valueanalysis')
      },
      {
        path: '/vipanalysis',
        name: 'vipanalysis',
        component: () => import('@/views/data/vipanalysis')
      },
      {
        path: '/transactionanalysis',
        name: 'transactionanalysis',
        component: () => import('@/views/data/transactionanalysis')
      },
      {
        path: '/outsurvey1',
        name: 'outsurvey1',
        component: () => import('@/views/data/outsurvey1')
      },
      {
        path: '/outsurvey2',
        name: 'outsurvey2',
        component: () => import('@/views/data/outsurvey2')
      },
      {
        path: '/outsurvey3',
        name: 'outsurvey3',
        component: () => import('@/views/data/outsurvey3')
      },
      {
        path: '/insurvey1',
        name: 'insurvey1',
        component: () => import('@/views/data/insurvey1')
      },
      {
        path: '/insurvey2',
        name: 'insurvey2',
        component: () => import('@/views/data/insurvey2')
      },
      {
        path: '/insurvey3',
        name: 'insurvey3',
        component: () => import('@/views/data/insurvey3')
      },
    ]
  },
  {
    path: '/setting',
    name: 'setting',
    component: Main,
    children: [
      // {
      //   path: "/goodset",
      //   name: "goodset",
      //   component: () =>
      //       import("@/views/setting/goodset")
      // },
      {
        path: '/baseset',
        name: 'baseset',
        component: () => import('@/views/setting/baseset')
      },
      {
        path: '/pagetitle',
        name: 'pagetitle',
        component: () => import('@/views/setting/pagetitle')
      },
      {
        path: '/orderset',
        name: 'orderset',
        component: () => import('@/views/setting/orderset')
      },
      {
        path: '/orderremind',
        name: 'orderremind',
        component: () => import('@/views/setting/orderremind')
      },
      {
        path: '/ptautiomsg',
        name: 'ptautiomsg',
        component: () => import('@/views/setting/ptautiomsg')
      },
      {
        path: '/ptmsg',
        name: 'ptmsg',
        component: () => import('@/views/setting/ptmsg')
      },
      {
        path: '/ptprentset',
        name: 'ptprentset',
        component: () => import('@/views/setting/ptprentset')
      },
      {
        path: '/paymentset',
        name: 'paymentset',
        component: () => import('@/views/setting/paymentset')
      },
      {
        path: '/distributionset',
        name: 'distributionset',
        component: () => import('@/views/setting/distributionset')
      },
      {
        path: '/otherset',
        name: 'otherset',
        component: () => import('@/views/setting/otherset')
      },
      {
        path: '/noticeset',
        name: 'noticeset',
        component: () => import('@/views/setting/noticeset')
      },
      {
        path: '/infoset',
        name: 'infoset',
        component: () => import('@/views/setting/infoset')
      },
      {
        path: '/shopservice',
        name: 'shopservice',
        component: () => import('@/views/setting/shopservice')
      },
      {
        path: '/enclosure',
        name: 'enclosure',
        component: () => import('@/views/setting/enclosure')
      },
      {
        path: '/manager',
        name: 'manager',
        component: () => import('@/views/setting/manager')
      },
      {
        path: '/role',
        name: 'role',
        component: () => import('@/views/setting/role')
      },
      {
        path: '/roleadd',
        name: 'roleadd',
        component: () => import('@/views/setting/roleadd')
      }
    ]
  },
  {
    path: '/manager',
    name: 'manager',
    component: Main,
    children: [
      {
        path: '/appletlist',
        name: 'appletlist',
        component: () => import('@/views/manager/appletlist')
      },
      {
        path: '/appletlistedit',
        name: 'appletlistedit',
        component: () => import('@/views/manager/appletlistedit')
      },
      {
        path: '/merchantset',
        name: 'merchantset',
        component: () => import('@/views/manager/merchantset')
      },
      {
        path: '/empower',
        name: 'empower',
        component: () => import('@/views/manager/empower')
      },
      {
        path: '/changelog',
        name: 'changelog',
        component: () => import('@/views/manager/changelog')
      },
      {
        path: '/founder',
        name: 'founder',
        component: () => import('@/views/manager/founder')
      },
      {
        path: '/cacheset',
        name: 'cacheset',
        component: () => import('@/views/manager/cacheset')
      }
    ]
  },
  {
    path: '/plugin',
    name: 'plugin',
    component: Main,
    children: [
      {
        path: '/application',
        name: 'application',
        component: () => import('@/views/plugin/application')
      },
      {
        path: '/miniapplets',
        name: 'miniapplets',
        component: () => import('@/views/plugin/miniapplets')
      },
      {
        path: '/elemapplets',
        name: 'elemapplets',
        component: () => import('@/views/plugin/elemapplets')
      },
      {
        path: '/meituanapplets',
        name: 'meituanapplets',
        component: () => import('@/views/plugin/meituanapplets')
      },
      {
        path: '/wechatapplets',
        name: 'wechatapplets',
        component: () => import('@/views/plugin/wechat/wechatapplets')
      },
      {
        path: '/wechattementmsg',
        name: 'wechattementmsg',
        component: () => import('@/views/plugin/wechat/wechattementmsg')
      },
      {
        path: '/wechatroute',
        name: 'wechatroute',
        component: () => import('@/views/plugin/wechat/wechatroute')
      },
      {
        path: '/baiduapplets',
        name: 'baiduapplets',
        component: () => import('@/views/plugin/baidu/baiduapplets')
      },
      {
        path: '/baidutementmsg',
        name: 'baidutementmsg',
        component: () => import('@/views/plugin/baidu/baidutementmsg')
      },
      {
        path: '/baiduroute',
        name: 'baiduroute',
        component: () => import('@/views/plugin/baidu/baiduroute')
      },
      {
        path: '/baidudownload',
        name: 'baidudownload',
        component: () => import('@/views/plugin/baidu/baidudownload')
      },
      {
        path: '/zfbapplets',
        name: 'zfbapplets',
        component: () => import('@/views/plugin/zfb/zfbapplets')
      },
      {
        path: '/zfbmyshop',
        name: 'zfbmyshop',
        component: () => import('@/views/plugin/zfb/zfbmyshop')
      },
      {
        path: '/zfbtementmsg',
        name: 'zfbtementmsg',
        component: () => import('@/views/plugin/zfb/zfbtementmsg')
      },
      {
        path: '/zfbroute',
        name: 'zfbroute',
        component: () => import('@/views/plugin/zfb/zfbroute')
      },
      {
        path: '/zfbdownload',
        name: 'zfbdownload',
        component: () => import('@/views/plugin/zfb/zfbdownload')
      },
      {
        path: '/dyapplets',
        name: 'dyapplets',
        component: () => import('@/views/plugin/dy/dyapplets')
      },
      {
        path: '/dytementmsg',
        name: 'dytementmsg',
        component: () => import('@/views/plugin/dy/dytementmsg')
      },
      {
        path: '/dyroute',
        name: 'dyroute',
        component: () => import('@/views/plugin/dy/dyroute')
      },
      {
        path: '/dydownload',
        name: 'dydownload',
        component: () => import('@/views/plugin/dy/dydownload')
      },
      {
        path: '/customerlist',
        name: 'customerlist',
        component: () => import('@/views/plugin/plug/customerlist')
      },
      {
        path: '/customerAdd',
        name: 'customerAdd',
        component: () => import('@/views/plugin/plug/customerAdd')
      },
      {
        path: '/customertongji',
        name: 'customertongji',
        component: () => import('@/views/plugin/plug/customertongji')
      },
      {
        path: '/deliverylist',
        name: 'deliverylist',
        component: () => import('@/views/plugin/plug/deliverylist')
      },
      {
        path: '/deliveryAdd',
        name: 'deliveryAdd',
        component: () => import('@/views/plugin/plug/deliveryAdd')
      },
      {
        path: '/deliverytongji',
        name: 'deliverytongji',
        component: () => import('@/views/plugin/plug/deliverytongji')
      },
      {
        path: '/fulllist',
        name: 'fulllist',
        component: () => import('@/views/plugin/plug/fulllist')
      },
      {
        path: '/fullAdd',
        name: 'fullAdd',
        component: () => import('@/views/plugin/plug/fullAdd')
      },
      {
        path: '/giftlist',
        name: 'giftlist',
        component: () => import('@/views/plugin/plug/giftlist')
      },
      {
        path: '/giftAdd',
        name: 'giftAdd',
        component: () => import('@/views/plugin/plug/giftAdd')
      },
      {
        path: '/fulltongji',
        name: 'fulltongji',
        component: () => import('@/views/plugin/plug/fulltongji')
      },
      {
        path: '/livelist',
        name: 'livelist',
        component: () => import('@/views/plugin/live/livelist')
      },
      {
        path: '/liveAdd',
        name: 'liveAdd',
        component: () => import('@/views/plugin/live/liveAdd')
      },
      {
        path: '/livegoods',
        name: 'livegoods',
        component: () => import('@/views/plugin/live/livegoods')
      },
      {
        path: '/livegoodsAdd',
        name: 'livegoodsAdd',
        component: () => import('@/views/plugin/live/livegoodsAdd')
      },
      {
        path: '/couponlist',
        name: 'couponlist',
        component: () => import('@/views/plugin/plug/couponlist')
      },
      {
        path: '/couponAdd',
        name: 'couponAdd',
        component: () => import('@/views/plugin/plug/couponAdd')
      },
      {
        path: '/newslist',
        name: 'newslist',
        component: () => import('@/views/plugin/plug/newslist')
      },
      {
        path: '/newsAdd',
        name: 'newsAdd',
        component: () => import('@/views/plugin/plug/newsAdd')
      },
      {
        path: '/orderRedlist',
        name: 'orderRedlist',
        component: () => import('@/views/plugin/plug/orderRedlist')
      },
      {
        path: '/orderRedlistAdd',
        name: 'orderRedlistAdd',
        component: () => import('@/views/plugin/plug/orderRedlistAdd')
      },
      {
        path: '/orderCourtesylist',
        name: 'orderCourtesylist',
        component: () => import('@/views/plugin/plug/orderCourtesylist')
      },
      {
        path: '/orderCourtesylistAdd',
        name: 'orderCourtesylistAdd',
        component: () => import('@/views/plugin/plug/orderCourtesylistAdd')
      },
      {
        path: '/managegood',
        name: 'managegood',
        component: () => import('@/views/plugin/integralmall/managegood')
      },
      {
        path: '/exchangerecord',
        name: 'exchangerecord',
        component: () => import('@/views/plugin/integralmall/exchangerecord')
      },
      {
        path: '/integralad',
        name: 'integralad',
        component: () => import('@/views/plugin/integralmall/integralad')
      },
      {
        path: '/integralgoodstype',
        name: 'integralgoodstype',
        component: () => import('@/views/plugin/integralmall/integralgoodstype')
      },
      {
        path: '/integralmall',
        name: 'integralmall',
        component: () => import('@/views/plugin/integralmall/integralmall')
      },
      {
        path: '/mentionpoint',
        name: 'mentionpoint',
        component: () => import('@/views/plugin/integralmall/mentionpoint')
      },
      {
        path: '/addobject',
        name: 'addobject',
        component: () => import('@/views/plugin/integralmall/addobject')
      },
      {
        path: '/addmentionpoint',
        name: 'addmentionpoint',
        component: () => import('@/views/plugin/integralmall/addmentionpoint')
      },
      {
        path: '/purchaselist',
        name: 'purchaselist',
        component: () => import('@/views/plugin/plug/purchaselist')
      },
      {
        path: '/purchaseAdd',
        name: 'purchaseAdd',
        component: () => import('@/views/plugin/plug/purchaseAdd')
      },
      {
        path: '/signin',
        name: 'signin',
        component: () => import('@/views/plugin/signin/signin')
      },
      {
        path: '/signinlist',
        name: 'signinlist',
        component: () => import('@/views/plugin/signin/signinlist')
      },
      {
        path: '/signinrecord',
        name: 'signinrecord',
        component: () => import('@/views/plugin/signin/signinrecord')
      },
      {
        path: '/signintj',
        name: 'signintj',
        component: () => import('@/views/plugin/signin/signintj')
      },
      {
        path: '/collectionlist',
        name: 'collectionlist',
        component: () => import('@/views/plugin/collection/collectionlist')
      },
      {
        path: '/collectionAdd',
        name: 'collectionAdd',
        component: () => import('@/views/plugin/collection/collectionAdd')
      },
      {
        path: '/management',
        name: 'management',
        component: () => import('@/views/plugin/plug/management')
      },
      {
        path: '/happybirthdayAdd',
        name: 'happybirthdayAdd',
        component: () => import('@/views/plugin/happybirthday/happybirthdayAdd')
      },
      {
        path: '/happybirthdaylist',
        name: 'happybirthdaylist',
        component: () =>
          import('@/views/plugin/happybirthday/happybirthdaylist')
      },
      {
        path: '/happybirthdaySet',
        name: 'happybirthdaySet',
        component: () => import('@/views/plugin/happybirthday/happybirthdaySet')
      },
      {
        path: '/couponsbaglistadd',
        name: 'couponsbaglistadd',
        component: () => import('@/views/plugin/couponsbag/couponsbaglistadd')
      },
      {
        path: '/couponsbaglist',
        name: 'couponsbaglist',
        component: () => import('@/views/plugin/couponsbag/couponsbaglist')
      },
      {
        path: '/windowcouponadd',
        name: 'windowcouponadd',
        component: () => import('@/views/plugin/windowcoupon/windowcouponadd')
      },
      {
        path: '/windowcoupon',
        name: 'windowcoupon',
        component: () => import('@/views/plugin/windowcoupon/windowcoupon')
      },
      {
        path: '/exchangeadd',
        name: 'exchangeadd',
        component: () => import('@/views/plugin/exchange/exchangeadd')
      },
      {
        path: '/exchangelist',
        name: 'exchangelist',
        component: () => import('@/views/plugin/exchange/exchangelist')
      },
      {
        path: '/informationadd',
        name: 'informationadd',
        component: () => import('@/views/plugin/information/informationadd')
      },
      {
        path: '/informationlist',
        name: 'informationlist',
        component: () => import('@/views/plugin/information/informationlist')
      },
      {
        path: '/informationset',
        name: 'informationset',
        component: () => import('@/views/plugin/information/informationset')
      },
      {
        path: '/rollbaglist',
        name: 'rollbaglist',
        component: () => import('@/views/plugin/rollbag/rollbaglist')
      },
      {
        path: '/rollbagadd',
        name: 'rollbagadd',
        component: () => import('@/views/plugin/rollbag/rollbagadd')
      },
      {
        path: '/msgnotlist',
        name: 'msgnotlist',
        component: () => import('@/views/plugin/msgnotification/msgnotlist')
      },
      {
        path: '/msgnotAdd',
        name: 'msgnotAdd',
        component: () => import('@/views/plugin/msgnotification/msgnotAdd')
      },
      {
        path: '/msgnotset',
        name: 'msgnotset',
        component: () => import('@/views/plugin/msgnotification/msgnotset')
      },
      {
        path: '/linkslist',
        name: 'linkslist',
        component: () => import('@/views/plugin/linksgj/linkslist')
      },
      {
        path: '/linkslistAdd',
        name: 'linkslistAdd',
        component: () => import('@/views/plugin/linksgj/linkslistAdd')
      },
      {
        path: '/voiceset',
        name: 'voiceset',
        component: () => import('@/views/plugin/voiceset/voiceset')
      },
      {
        path: '/goodsActive',
        name: 'goodsActive',
        component: () =>
          import('@/views/plugin/goodsActive/goodsActiveList.vue')
      },
      {
        path: '/goodsActiveAdd',
        name: 'goodsActive',
        component: () =>
          import('@/views/plugin/goodsActive/goodsActive-add.vue')
      },
      {
        path: '/halfprice',
        name: 'halfprice',
        component: () => import('@/views/plugin/goodsActive/halfprice.vue')
      },
      {
        path: '/halfpriceAdd',
        name: 'halfpriceAdd',
        component: () => import('@/views/plugin/goodsActive/halfprice-add.vue')
      },
      {
        path: '/distribution',
        name: 'distribution',
        component: () => import('@/views/plugin/distribution/distribution.vue')
      },
      {
        path: '/distributionOrder',
        name: 'distributionOrder',
        component: () => import('@/views/plugin/distribution/distributionOrder.vue')
      },
      {
        path: '/distributionAdmin',
        name: 'distributionAdmin',
        component: () =>
          import('@/views/plugin/distribution/distributionAdmin.vue')
      },
      {
        path: '/WithdrawalSet',
        name: 'WithdrawalSet',
        component: () => import('@/views/plugin/distribution/WithdrawalSet.vue')
      },
      {
        path: '/distStteing',
        name: 'distStteing',
        component: () => import('@/views/plugin/distribution/distStteing.vue')
      },
      {
        path: '/oldOrNew',
        name: 'oldOrNew',
        component: () => import('@/views/plugin/oldNew/old-or-new.vue')
      },
      {
        path: '/oldWithdrawalSet',
        name: 'oldWithdrawalSet',
        component: () => import('@/views/plugin/oldNew/oldWithdrawalSet.vue')
      },
      {
        path: '/oldOrNewAdd',
        name: 'oldOrNewAdd',
        component: () => import('@/views/plugin/oldNew/old-or-new-add.vue')
      },
      {
        path: '/InvitationRecord',
        name: 'InvitationRecord',
        component: () => import('@/views/plugin/oldNew/Invitation-record.vue')
      },
      {
        path: '/rewardInfo',
        name: 'rewardInfo',
        component: () => import('@/views/plugin/oldNew/reward-info.vue')
      },
      {
        path: '/card',
        name: 'card',
        component: () => import('@/views/plugin/member/card.vue')
      },
      {
        path: '/vipConfig',
        name: 'vipConfig',
        component: () => import('@/views/plugin/member/vipConfig.vue')
      },
      {
        path: '/vip-cupon-add',
        name: 'VipCuponAdd',
        component: () =>
          import('@/views/plugin/member/components/vip-cupon-add.vue')
      },
      {
        path: '/vipList',
        name: 'vipList',
        component: () => import('@/views/plugin/member/vipList.vue')
      },
      {
        path: '/cashReg',
        name: 'cashReg',
        component: () => import('@/views/plugin/cashReg/cashReg.vue')
      },
      {
        path: '/carRegT',
        name: 'carRegT',
        component: () => import('@/views/plugin/cashReg/carReg-t.vue')
      },
      {
        path: '/shiftHandover',
        name: 'shiftHandover',
        component: () => import('@/views/plugin/cashReg/shift-handover.vue')
      },
      {
        path: '/shiftHandoverInfo',
        name: 'shiftHandoverInfo',
        component: () =>
          import('@/views/plugin/cashReg/shift-handover-info.vue')
      },
      {
        path: '/acmtInfo',
        name: 'acmtInfo',
        component: () => import('@/views/plugin/cashReg/acmt-info.vue')
      },
      {
        path: '/queuingdetails',
        name: 'queuingdetails',
        component: () => import('@/views/plugin/lineUp/queuingdetails.vue')
      },
      {
        path: '/queuingtype',
        name: 'queuingtype',
        component: () => import('@/views/plugin/lineUp/queuingtype.vue')
      },
      {
        path: '/queuingset',
        name: 'queuingset',
        component: () => import('@/views/plugin/lineUp/queuingset.vue')
      },
      {
        path: '/storage',
        name: 'storage',
        component: () => import('@/views/plugin/storage/storage.vue')
      },
      {
        path: '/storagerecord',
        name: 'storagerecord',
        component: () => import('@/views/plugin/storage/storagerecord.vue')
      },
      {
        path: '/storagebrand',
        name: 'storagebrand',
        component: () => import('@/views/plugin/storage/storagebrand.vue')
      },
      {
        path: '/storageset',
        name: 'storageset',
        component: () => import('@/views/plugin/storage/storageset.vue')
      },
      {
        path: '/appointmentlist',
        name: 'appointmentlist',
        component: () => import('@/views/plugin/appointment/appointmentlist.vue')
      },
      {
        path: '/appointmentorder',
        name: 'appointmentorder',
        component: () => import('@/views/plugin/appointment/appointmentorder.vue')
      },
      {
        path: '/appointmentstoreset',
        name: 'appointmentstoreset',
        component: () => import('@/views/plugin/appointment/appointmentstoreset.vue')
      },
      {
        path: '/dividend',
        name: 'dividend',
        component: () => import('@/views/plugin/dividend/dividend.vue')
      },
      {
        path: '/dividendadd',
        name: 'dividendadd',
        component: () => import('@/views/plugin/dividend/dividendadd.vue')
      },
      {
        path: '/divideinfo',
        name: 'divideinfo',
        component: () => import('@/views/plugin/dividend/divideinfo.vue')
      },
      {
        path: '/divideinfotwo',
        name: 'divideinfotwo',
        component: () => import('@/views/plugin/dividend/divideinfotwo.vue')
      },
      {
        path: '/jdRedlist',
        name: 'jdRedlist',
        component: () => import('@/views/plugin/jdred/jdRedlist.vue')
      },
      {
        path: '/jdRedlistAdd',
        name: 'jdRedlistAdd',
        component: () => import('@/views/plugin/jdred/jdRedlistAdd.vue')
      },

    ]
  },
  {
    path: '/',
    name: 'shopStore',
    component: shopMain,
    children: [
      {
        path: 'storeindex',
        name: 'storeindex',
        component: () => import('@/views/storeadmin/index/storeindex')
      },
      {
        path: '/storeorderprocessing',
        name: 'storeorderprocessing',
        component: () => import('@/views/storeadmin/order/storeorderprocessing')
      },
      {
        path: '/storeorderinquiry',
        name: 'storeorderinquiry',
        component: () => import('@/views/storeadmin/order/storeorderinquiry')
      },
      {
        path: '/storeselforder',
        name: 'storeselforder',
        component: () => import('@/views/storeadmin/order/storeselforder')
      },
      {
        path: '/storeelemorder',
        name: 'storeelemorder',
        component: () => import('@/views/storeadmin/order/storeelemorder')
      },
      {
        path: '/storemeituanorder',
        name: 'storemeituanorder',
        component: () => import('@/views/storeadmin/order/storemeituanorder')
      },
      {
        path: '/storeoutset',
        name: 'storeoutset',
        component: () => import('@/views/storeadmin/order/storeoutset')
      },
      {
        path: '/storetemplatemsg',
        name: 'storetemplatemsg',
        component: () => import('@/views/storeadmin/order/storetemplatemsg')
      },
      {
        path: '/storesmsreminder',
        name: 'storesmsreminder',
        component: () => import('@/views/storeadmin/order/storesmsreminder')
      },
      {
        path: '/storevoicereminder',
        name: 'storevoicereminder',
        component: () => import('@/views/storeadmin/order/storevoicereminder')
      },
      {
        path: '/storeaccountmange',
        name: 'storeaccountmange',
        component: () => import('@/views/storeadmin/finance/storeaccountmange')
      },
      {
        path: '/storeaccountdl',
        name: 'storeaccountdl',
        component: () => import('@/views/storeadmin/finance/storeaccountdl')
      },
      {
        path: '/storeassetssurvey',
        name: 'storeassetssurvey',
        component: () => import('@/views/storeadmin/finance/storeassetssurvey')
      },
      {
        path: '/storefinancerecord',
        name: 'storefinancerecord',
        component: () => import('@/views/storeadmin/finance/storefinancerecord')
      },
      {
        path: '/storetransactiondl',
        name: 'storetransactiondl',
        component: () => import('@/views/storeadmin/finance/storetransactiondl')
      },
      {
        path: '/storefinancerecordDetail',
        name: 'storefinancerecordDetail',
        component: () =>
          import('@/views/storeadmin/finance/storefinancerecordDetail')
      },
      {
        path: '/storeinfinancerecordDetail',
        name: 'storeinfinancerecordDetail',
        component: () =>
          import('@/views/storeadmin/finance/storeinfinancerecordDetail')
      },
      {
        path: '/storecashfinancerecordDetail',
        name: 'storecashfinancerecordDetail',
        component: () =>
            import('@/views/storeadmin/finance/storecashfinancerecordDetail')
      },
      {
        path: '/storedatasurvey',
        name: 'storedatasurvey',
        component: () => import('@/views/storeadmin/data/storedatasurvey')
      },
      {
        path: '/storerealtime',
        name: 'storerealtime',
        component: () => import('@/views/storeadmin/data/storerealtime')
      },
      {
        path: '/storeflowanalysis',
        name: 'storeflowanalysis',
        component: () => import('@/views/storeadmin/data/storeflowanalysis')
      },
      {
        path: '/storeoutgood',
        name: 'storeoutgood',
        component: () => import('@/views/storeadmin/data/storeoutgood')
      },
      {
        path: '/storetransactionanalysis',
        name: 'storetransactionanalysis',
        component: () =>
          import('@/views/storeadmin/data/storetransactionanalysis')
      },
      {
        path: '/storeoutsurvey1',
        name: 'storeoutsurvey1',
        component: () =>
            import('@/views/storeadmin/data/storeoutsurvey1')
      },
      {
        path: '/storeoutsurvey2',
        name: 'storeoutsurvey2',
        component: () =>
            import('@/views/storeadmin/data/storeoutsurvey2')
      },
      {
        path: '/storeoutsurvey3',
        name: 'storeoutsurvey3',
        component: () =>
            import('@/views/storeadmin/data/storeoutsurvey3')
      },
      {
        path: '/storeinsurvey1',
        name: 'storeinsurvey1',
        component: () =>
            import('@/views/storeadmin/data/storeinsurvey1')
      },
      {
        path: '/storeinsurvey2',
        name: 'storeinsurvey2',
        component: () =>
            import('@/views/storeadmin/data/storeinsurvey2')
      },
      {
        path: '/storeinsurvey3',
        name: 'storeinsurvey3',
        component: () =>
            import('@/views/storeadmin/data/storeinsurvey3')
      },
      {
        path: '/storebaseset',
        name: 'storebaseset',
        component: () => import('@/views/storeadmin/seeting/storebaseset')
      },
      {
        path: '/storebasesetedit1',
        name: 'storebasesetedit1',
        component: () => import('@/views/storeadmin/seeting/storebasesetedit1')
      },
      {
        path: '/storebasesetedit2',
        name: 'storebasesetedit2',
        component: () => import('@/views/storeadmin/seeting/storebasesetedit2')
      },
      {
        path: '/storebasesetedit3',
        name: 'storebasesetedit3',
        component: () => import('@/views/storeadmin/seeting/storebasesetedit3')
      },
      {
        path: '/storebasesetedit4',
        name: 'storebasesetedit4',
        component: () => import('@/views/storeadmin/seeting/storebasesetedit4')
      },
      {
        path: '/storenoticeset',
        name: 'storenoticeset',
        component: () => import('@/views/storeadmin/seeting/storenoticeset')
      },
      // {
      //     path: "/storeregiondistribution",
      //     name: "storeregiondistribution",
      //     component: () =>
      //         import("@/views/storeadmin/seeting/storeregiondistribution"),
      // },
      {
        path: '/storeprinterset',
        name: 'storeprinterset',
        component: () => import('@/views/storeadmin/seeting/storeprinterset')
      },

      {
        path: '/storegoodlist',
        name: 'storegoodlist',
        component: () => import('@/views/storeadmin/good/storegoodlist')
      },
      {
        path: '/instoregoodlist',
        name: 'instoregoodlist',
        component: () => import('@/views/storeadmin/good/instoregoodlist')
      },
      {
        path: '/storegoodspec',
        name: 'storegoodspec',
        component: () => import('@/views/storeadmin/good/storegoodspec')
      },
      {
        path: '/storegoodattribute',
        name: 'storegoodattribute',
        component: () => import('@/views/storeadmin/good/storegoodattribute')
      },
      {
        path: '/storegoodimport',
        name: 'storegoodimport',
        component: () => import('@/views/good/goodimport')
      },
      {
        path: '/storegoodunit',
        name: 'storegoodunit',
        component: () => import('@/views/storeadmin/good/storegoodunit')
      },
      {
        path: '/storegoodfeeding',
        name: 'storegoodfeeding',
        component: () => import('@/views/storeadmin/good/storegoodfeeding')
      },
      {
        path: '/storegoodclassify',
        name: 'storegoodclassify',
        component: () => import('@/views/storeadmin/good/storegoodclassify')
      },
      {
        path: '/instoregoodclassify',
        name: 'instoregoodclassify',
        component: () => import('@/views/storeadmin/good/instoregoodclassify')
      },
      {
        path: '/storeaddgood1',
        name: 'storeaddgood1',
        component: () => import('@/views/storeadmin/good/storeaddgood1')
      },
      {
        path: '/storeusersurvey',
        name: 'storeusersurvey',
        component: () => import('@/views/storeadmin/user/storeusersurvey')
      },
      {
        path: '/storeuserquery',
        name: 'storeuserquery',
        component: () => import('@/views/storeadmin/user/storeuserquery')
      },
      {
        path: '/storeuserlabel',
        name: 'storeuserlabel',
        component: () => import('@/views/storeadmin/user/storeuserlabel')
      },
      {
        path: '/storeuserdetails',
        name: 'storeuserdetails',
        component: () => import('@/views/storeadmin/user/storeuserdetails')
      },
      {
        path: '/storemanager',
        name: 'storemanager',
        component: () => import('@/views/storeadmin/power/storemanager')
      },
      {
        path: '/storerole',
        name: 'storerole',
        component: () => import('@/views/storeadmin/power/storerole')
      },
      {
        path: '/storeroleadd',
        name: 'storeroleadd',
        component: () => import('@/views/storeadmin/power/storeroleadd')
      },
      {
        path: '/storeapplication',
        name: 'storeapplication',
        component: () => import('@/views/storeadmin/plugin/storeapplication')
      },
      {
        path: '/storeelemapplets',
        name: 'storeelemapplets',
        component: () => import('@/views/storeadmin/plugin/storeelemapplets')
      },
      {
        path: '/storezfbmyshop',
        name: 'storezfbmyshop',
        component: () => import('@/views/storeadmin/plugin/storezfb/storezfbmyshop')
      },
      {
        path: '/storecouponlist',
        name: 'storecouponlist',
        component: () =>
          import('@/views/storeadmin/plugin/coupon/storecouponlist')
      },
      {
        path: '/storecouponAdd',
        name: 'storecouponAdd',
        component: () =>
          import('@/views/storeadmin/plugin/coupon/storecouponAdd')
      },
      {
        path: '/storefulllist',
        name: 'storefulllist',
        component: () => import('@/views/storeadmin/plugin/full/storefulllist')
      },
      {
        path: '/storefullAdd',
        name: 'storefullAdd',
        component: () => import('@/views/storeadmin/plugin/full/storefullAdd')
      },
      {
        path: '/storedeliverylist',
        name: 'storedeliverylist',
        component: () =>
          import('@/views/storeadmin/plugin/delivery/storedeliverylist')
      },
      {
        path: '/storedeliveryAdd',
        name: 'storedeliveryAdd',
        component: () =>
          import('@/views/storeadmin/plugin/delivery/storedeliveryAdd')
      },
      {
        path: '/storeorderRedlist',
        name: 'storeorderRedlist',
        component: () =>
          import('@/views/storeadmin/plugin/orderred/storeorderRedlist')
      },
      {
        path: '/storeorderRedlistAdd',
        name: 'storeorderRedlistAdd',
        component: () =>
          import('@/views/storeadmin/plugin/orderred/storeorderRedlistAdd')
      },
      {
        path: '/storeorderCourtesylist',
        name: 'storeorderCourtesylist',
        component: () =>
          import(
            '@/views/storeadmin/plugin/ordercourtesy/storeorderCourtesylist'
          )
      },
      {
        path: '/storeorderCourtesylistAdd',
        name: 'storeorderCourtesylistAdd',
        component: () =>
          import(
            '@/views/storeadmin/plugin/ordercourtesy/storeorderCourtesylistAdd'
          )
      },
      {
        path: '/storegiftlist',
        name: 'storegiftlist',
        component: () => import('@/views/storeadmin/plugin/gift/storegiftlist')
      },
      {
        path: '/storegiftAdd',
        name: 'storegiftAdd',
        component: () => import('@/views/storeadmin/plugin/gift/storegiftAdd')
      },
      {
        path: '/storepurchaselist',
        name: 'storepurchaselist',
        component: () =>
          import('@/views/storeadmin/plugin/purchase/storepurchaselist')
      },
      {
        path: '/storepurchaseAdd',
        name: 'storepurchaseAdd',
        component: () =>
          import('@/views/storeadmin/plugin/purchase/storepurchaseAdd')
      },
      {
        path: '/storecustomerlist',
        name: 'storecustomerlist',
        component: () =>
          import('@/views/storeadmin/plugin/customer/storecustomerlist')
      },
      {
        path: '/storecustomerAdd',
        name: 'storecustomerAdd',
        component: () =>
          import('@/views/storeadmin/plugin/customer/storecustomerAdd')
      },
      {
        path: '/storeinformationlist',
        name: 'storeinformationlist',
        component: () =>
          import('@/views/storeadmin/plugin/information/storeinformationlist')
      },
      {
        path: '/storeinformationadd',
        name: 'storeinformationadd',
        component: () =>
          import('@/views/storeadmin/plugin/information/storeinformationadd')
      },
      {
        path: '/storerollbaglist',
        name: 'storerollbaglist',
        component: () =>
          import('@/views/storeadmin/plugin/rollbag/storerollbaglist')
      },
      {
        path: '/storerollbagadd',
        name: 'storerollbagadd',
        component: () =>
          import('@/views/storeadmin/plugin/rollbag/storerollbagadd')
      },
      {
        path: '/storewindowcoupon',
        name: 'storewindowcoupon',
        component: () =>
            import('@/views/storeadmin/plugin/windowcoupon/storewindowcoupon')
      },
      {
        path: '/storewindowcouponadd',
        name: 'storewindowcouponadd',
        component: () =>
            import('@/views/storeadmin/plugin/windowcoupon/storewindowcouponadd')
      },
      {
        path: '/storequeuingdetails',
        name: 'storequeuingdetails',
        component: () =>
            import('@/views/storeadmin/plugin/lineUp/storequeuingdetails')
      },
      {
        path: '/storequeuingtype',
        name: 'storequeuingtype',
        component: () =>
            import('@/views/storeadmin/plugin/lineUp/storequeuingtype')
      },
      {
        path: '/storequeuingset',
        name: 'storequeuingset',
        component: () =>
            import('@/views/storeadmin/plugin/lineUp/storequeuingset')
      },
      {
        path: '/storestorage',
        name: 'storestorage',
        component: () =>
            import('@/views/storeadmin/plugin/storage/storestorage')
      },
      {
        path: '/storestoragebrand',
        name: 'storestoragebrand',
        component: () =>
            import('@/views/storeadmin/plugin/storage/storestoragebrand')
      },
      {
        path: '/storestoragerecord',
        name: 'storestoragerecord',
        component: () =>
            import('@/views/storeadmin/plugin/storage/storestoragerecord')
      },
      {
        path: '/storestorageset',
        name: 'storestorageset',
        component: () =>
            import('@/views/storeadmin/plugin/storage/storestorageset')
      },
      {
        path: '/storeappointmentlist',
        name: 'storeappointmentlist',
        component: () =>
            import('@/views/storeadmin/plugin/appointment/storeappointmentlist')
      },
      {
        path: '/storeappointmentorder',
        name: 'storeappointmentorder',
        component: () =>
            import('@/views/storeadmin/plugin/appointment/storeappointmentorder')
      },
      {
        path: '/storeappointmentstoreset',
        name: 'storeappointmentstoreset',
        component: () =>
            import('@/views/storeadmin/plugin/appointment/storeappointmentstoreset')
      },
      {
        path: '/carregsyy',
        name: 'carregsyy',
        component: () =>
            import('@/views/storeadmin/plugin/cashreg/carregsyy')
      },
      {
        path: '/storemsgnotAdd',
        name: 'storemsgnotAdd',
        component: () =>
          import('@/views/storeadmin/plugin/msgnotification/storemsgnotAdd')
      },
      {
        path: '/storemsgnotlist',
        name: 'storemsgnotlist',
        component: () =>
          import('@/views/storeadmin/plugin/msgnotification/storemsgnotlist')
      },
      {
        path: '/storemsgnotset',
        name: 'storemsgnotset',
        component: () =>
          import('@/views/storeadmin/plugin/msgnotification/storemsgnotset')
      },
      {
        path: '/storeexchangeadd',
        name: 'storeexchangeadd',
        component: () =>
          import('@/views/storeadmin/plugin/exchange/storeexchangeadd')
      },
      {
        path: '/storeexchangelist',
        name: 'storeexchangelist',
        component: () =>
          import('@/views/storeadmin/plugin/exchange/storeexchangelist')
      },
      {
        path: '/storeinstoresurvey',
        name: 'storeinstoresurvey',
        component: () => import('@/views/storeadmin/instore/storeinstoresurvey')
      },
      {
        path: '/storeinstoreorder',
        name: 'storeinstoreorder',
        component: () => import('@/views/storeadmin/instore/storeinstoreorder')
      },
      {
        path: '/storeinstoreorderquery',
        name: 'storeinstoreorderquery',
        component: () => import('@/views/storeadmin/instore/storeinstoreorderquery')
      },
      {
        path: '/storeinstoredwcorderquery',
        name: 'storeinstoredwcorderquery',
        component: () => import('@/views/storeadmin/instore/storeinstoredwcorderquery')
      },
      {
        path: '/storeinstoreorderdl',
        name: 'storeinstoreorderdl',
        component: () =>
          import('@/views/storeadmin/instore/storeinstoreorderdl')
      },
      {
        path: '/storeinfastorder',
        name: 'storeinfastorder',
        component: () => import('@/views/storeadmin/instore/storeinfastorder')
      },
      {
        path: '/storeinfastorderquery',
        name: 'storeinfastorderquery',
        component: () => import('@/views/storeadmin/instore/storeinfastorderquery')
      },
      {
        path: '/storecashierorder',
        name: 'storecashierorder',
        component: () => import('@/views/storeadmin/instore/storecashierorder')
      },
      {
        path: '/storeevaluate',
        name: 'storeevaluate',
        component: () => import('@/views/storeadmin/order/storeevaluate')
      },
      {
        path: '/storeevaluatelabel',
        name: 'storeevaluatelabel',
        component: () => import('@/views/storeadmin/order/storeevaluatelabel')
      },
      {
        path: '/storetable',
        name: 'storetable',
        component: () => import('@/views/storeadmin/instore/storetable')
      },
      {
        path: '/storetablemanager',
        name: 'storetablemanager',
        component: () => import('@/views/storeadmin/instore/storetablemanager')
      },
      {
        path: '/storetablecode',
        name: 'storetablecode',
        component: () => import('@/views/storeadmin/instore/storetablecode')
      },
      {
        path: '/storeinstoreset',
        name: 'storeinstoreset',
        component: () => import('@/views/storeadmin/instore/storeinstoreset')
      },
      {
        path: '/storeinprinterset',
        name: 'storeinprinterset',
        component: () => import('@/views/storeadmin/instore/storeinprinterset')
      }
    ]
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/components/404.vue')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

/* 路由发生变化请求检查授权 */
// router.beforeEach(async (to, from, next) => {

// const user = getGlobalData("user");
// const {notRequiredValid, needBingTel} = to.meta;
//
// if (notRequiredValid) {
//     return next();
// }

//如果用户已授权信息则允许通过逻辑路由
// if (needBingTel && !user.userTel) {
//     try {
//         await showDialog("请先授权", "提示", false);
//         if (to.path === "/home" || to.path === "/") {
//             return next()
//         }
//         next("/login")
//     } catch (e) {
//         next("/login")
//     }
//
// } else {
//     //console.log("needBingTel", needBingTel)
//     next()
// }

// });
export default router
